package com.lzy.cloud.base.remote;

import com.lzy.framework.core.output.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description: 用户信息接口
 * @Author:   gyl
 * @Date:     2018/7/16 14:59
 */
@FeignClient(name = "lzy-cloud-user")
public interface UserApi {

    /**
     * 方法说明：根据token查询用户信息
     * @date   2018/7/16 15:04
     */
    @RequestMapping(value = "/user/select/by/token")
    Result selectUserByToken(@RequestHeader("token") String token);

    /**
     * 方法说明：根据token查询用户信息
     * @date   2018/7/16 15:04
     */
    @RequestMapping(value = "/role/list/by/user")
    Result userRoleList(@RequestHeader("token") String token);
}
